fix(deps): update graphql-codegen (major)#609
Open
renovate[bot] wants to merge 2 commits into
Open
Conversation
🦋 Changeset detectedLatest commit: 921c0ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
12 tasks
8b155c3 to
2d505a8
Compare
4ea3d5d to
2c914a2
Compare
6a3aa7d to
84f0fa9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.0.0→^6.0.0^2.8.1→^5.0.02.13.8→6.2.4Release Notes
dotansimha/graphql-code-generator (@graphql-codegen/plugin-helpers)
v6.1.1Compare Source
Patch Changes
cdf5dc5Thanks @ardatan! - dependencies updates:@graphql-tools/utils@^11.0.0↗︎ (from^10.0.0, independencies)v6.1.0Compare Source
Minor Changes
9e70bcbThanks @nickmessing! - add importExtension configuration optionv6.0.0Compare Source
Major Changes
#10218
140298aThanks @eddeee888! - BREAKING CHANGES: Do not generate __isTypeOf for non-implementing types or non-union members#10218
140298aThanks @eddeee888! - Remove deprecated optionwatchConfig#10218
140298aThanks @eddeee888! - Ensure Federation Interfaces have__resolveReferenceif they are resolvable entitiesBREAKING CHANGES: Deprecate
onlyResolveTypeForInterfacesbecause majority of use cases cannot implement resolvers in Interfaces.BREAKING CHANGES: Deprecate
generateInternalResolversIfNeeded.__resolveReferencebecause types do not have__resolveReferenceif they are not Federation entities or are not resolvable. Users should not have to manually set this option. This option was put in to wait for this major version.#10218
140298aThanks @eddeee888! - BREAKING CHANGE: Improve Federation Entity's resolvers' parent param type: These types were using reference types inline. This makes it hard to handle mappers. The Parent type now all comes from ParentResolverTypes to make handling mappers and parent types simpler.#10218
140298aThanks @eddeee888! - Fixmappersusage with Federationmapperswas previously used as__resolveReference's first param (usually called "reference"). However, this is incorrect becausereferenceinterface comes directly from@keyand@requiresdirectives. This patch fixes the issue by creating a newFederationTypestype and use it as the base for federation entity types when being used to type entity references.BREAKING CHANGES: No longer generate
UnwrappedObjectutility type, as this was used to support the wrong previously generated type.#10218
140298aThanks @eddeee888! - Drop Node 18 supportMinor Changes
140298aThanks @eddeee888! - AddallowPartialOutputsflag to partially write successful generation to filesPatch Changes
#10218
140298aThanks @eddeee888! - Update @requires type#10218
140298aThanks @eddeee888! - Fix fields or object types marked with @external being wrongly generatedv5.1.1Compare Source
Patch Changes
e324382Thanks @ArminWiebigke! - Allow functions to be passed as valid values forUrlSchemaOptions.customFetch. This was already possible, but the type definitions did not reflect that correctly.v5.1.0Compare Source
Minor Changes
#9989
55a1e9eThanks @eddeee888! - AddgenerateInternalResolversIfNeededoptionThis option can be used to generate more correct types for internal resolvers. For example, only generate
__resolveReferenceif the federation object has a resolvable@key.In the future, this option can be extended to support other internal resolvers e.g.
__isTypeOfis only generated for implementing types and union members.v5.0.4Compare Source
Patch Changes
dfc5310Thanks @eddeee888! - Update plugin output type to allow optionmetafieldv5.0.3Compare Source
Patch Changes
4e69568Thanks @saihaj! - bumping for a releasev5.0.2Compare Source
Patch Changes
d8364e045Thanks @saihaj! - dependencies updates:tslib@~2.6.0↗︎ (from~2.5.0, independencies)v5.0.1Compare Source
Patch Changes
bb1e0e96eThanks @tnyo43! - add noSilentErrors option to the config typev5.0.0Compare Source
Major Changes
bb66c2a31Thanks @n1ru4l! - Require Node.js>= 16. Drop support for Node.js 14Patch Changes
#9449
4d9ea1a5aThanks @n1ru4l! - dependencies updates:@graphql-tools/utils@^10.0.0↗︎ (from^9.0.0, independencies)#9332
f46803a8cThanks @eddeee888! - Update GitHub loader TypeScript type and usage docs#9360
63827fabeThanks @beerose! - Add handleAsSDL property to UrlSchemaOptions typev4.2.0Compare Source
Minor Changes
#9151
b7dacb21fThanks @'./user/schema.mappers#UserMapper',! - AddwatchPatternconfig option forgeneratessections.By default,
watchmode automatically watches all GraphQL schema and document files. This means when a change is detected, Codegen CLI is run.A user may want to run Codegen CLI when non-schema and non-document files are changed. Each
generatessection now has awatchPatternoption to allow more file patterns to be added to the list of patterns to watch.In the example below, mappers are exported from
schema.mappers.tsfiles. We want to re-run Codegen if the content of*.mappers.tsfiles change because they change the generated types file. To solve this, we can add mapper file patterns to watch using the glob pattern used for schema and document files.Then, run Codegen CLI in
watchmode:Now, updating
*.mappers.tsfiles re-runs Codegen! 🎉Note:
watchPatternis only used inwatchmode i.e. running CLI with--watchflag.Patch Changes
f104619acThanks @saihaj! - Resolve issue with nesting fields in@providesdirective being preventedv4.1.0Compare Source
Minor Changes
#8893
a118c307aThanks @n1ru4l! - markpluginsin config optional#8723
a3309e63eThanks @kazekyo! - Introduce a new feature called DocumentTransform.DocumentTransform is a functionality that allows you to modify
documentsbefore they are processed by plugins. You can use functions passed to thedocumentTransformsoption to make changes to GraphQL documents.To use this feature, you can write
documentTransformsas follows:For instance, to remove a
@localOnlyDirectivedirective fromdocuments, you can write the following code:DocumentTransform can also be specified by file name. You can create a custom file for a specific transformation and pass it to
documentTransforms.Let's create the document transform as a file:
Then, you can specify the file name as follows:
Patch Changes
8206b268dThanks @renovate! - dependencies updates:tslib@~2.5.0↗︎ (from~2.4.0, independencies)v4.0.0Compare Source
Major Changes
fd0b0c813Thanks @n1ru4l! - drop Node.js 12 supportPatch Changes
fc79b65d4Thanks @B2o5T! - eslint fixesdotansimha/graphql-code-generator (@graphql-codegen/typescript)
v5.0.9Compare Source
Patch Changes
cdf5dc5Thanks @ardatan! - dependencies updates:@graphql-codegen/visitor-plugin-common@^6.2.3↗︎ (from6.2.3, independencies)cdf5dc5,cdf5dc5,cdf5dc5]:v5.0.8Compare Source
Patch Changes
6038634]:v5.0.7Compare Source
Patch Changes
f588d91]:v5.0.6Compare Source
Patch Changes
b995ed1]:v5.0.5Compare Source
Patch Changes
f821e8a,9e70bcb]:v5.0.4Compare Source
Patch Changes
51a1a72]:v5.0.3Compare Source
Patch Changes
6715330]:v5.0.2Compare Source
Patch Changes
8258f1f]:v5.0.1Compare Source
Patch Changes
accdab6]:v5.0.0Compare Source
Major Changes
#10218
140298aThanks @eddeee888! - Remove NameNode override#10218
140298aThanks @eddeee888! - Drop Node 18 supportPatch Changes
140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a,140298a]:v4.1.6Compare Source
Patch Changes
f6909d1]:v4.1.5Compare Source
Patch Changes
d8566c0]:v4.1.4Compare Source
Patch Changes
6d7c1d7]:v4.1.3Compare Source
Patch Changes
60dd72f]:v4.1.2Compare Source
Patch Changes
1617e3c,fa64fbf]:v4.1.1Compare Source
Patch Changes
55a1e9e,a235051]:v4.1.0Compare Source
Minor Changes
#10077
3f4f546Thanks @eddeee888! - Extendconfig.avoidOptionsto support query, mutation and subscriptionPreviously,
config.avoidOptions.resolverswas being used to make query, mutation and subscription fields non-optional.Now,
config.avoidOptions.query,config.avoidOptions.mutationandconfig.avoidOptions.subscriptioncan be used to target the respective types.Patch Changes
3f4f546]:v4.0.9Compare Source
Patch Changes
79fee3c]:v4.0.8Compare Source
Patch Changes
808ada5,14ce39e]:v4.0.7Compare Source
Patch Changes
dfc5310,156cc2b,dfc5310,b49457b]:v4.0.6Compare Source
Patch Changes
920b443,ed9c205]:v4.0.5Compare Source
Patch Changes
53f270a]:v4.0.4Compare Source
Patch Changes
#9813
4e69568Thanks @saihaj! - bumping for a releaseUpdated dependencies [
4e69568]:v4.0.3Compare Source
Patch Changes
7718a8113]:v4.0.2Compare Source
Patch Changes
d8364e045Thanks @saihaj! - dependencies updates:tslib@~2.6.0↗︎ (from~2.5.0, independencies)d8364e045,d8364e045,d8364e045,d8364e045,d8364e045]:v4.0.1Compare Source
Patch Changes
#9497
2276708d0Thanks @eddeee888! - Revert default ID scalar input type to stringWe changed the ID Scalar input type from
stringtostring | numberin the latest major version oftypescriptplugin. This causes issues for server plugins (e.g. typescript-resolvers) that depends ontypescriptplugin. This is because the scalar type needs to be manually inverted on setup which is confusing.Updated dependencies [
2276708d0]:v4.0.0Compare Source
Major Changes
#9375
ba84a3a27Thanks @eddeee888! - Implement Scalars with input/output typesIn GraphQL, Scalar types can be different for client and server. For example, given the native GraphQL ID:
stringornumberin the inputstringin its selection set (i.e output)stringin the resolver (GraphQL parsesstringornumberreceived from the client tostring)stringornumber(GraphQL serializes the value tostringbefore sending it to the client )Currently, we represent every Scalar with only one type. This is what codegen generates as base type:
Then, this is used in both input and output type e.g.
This PR extends each Scalar to have input and output:
Then, each input/output GraphQL type can correctly refer to the correct input/output scalar type:
Note that for
typescript-resolvers, the type of ID needs to be inverted. However, the referenced types in GraphQL input/output types should still work correctly:Config changes:
If correctly, wired up, the following will be generated:
BREAKING CHANGE: This changes Scalar types which could be referenced in other plugins. If you are a plugin maintainer and reference Scalar, please update your plugin to use the correct input/output types.
bb66c2a31Thanks @n1ru4l! - Require Node.js>= 16. Drop support for Node.js 14Minor Changes
#9196
3848a2b73Thanks @beerose! - Add@deferdirective supportWhen a query includes a deferred fragment field, the server will return a partial response with the non-deferred fields first, followed by the remaining fields once they have been resolved.
Once start using the
@deferdirective in your queries, the generated code will automatically include support for the directive.The generated type for
GetUserQuerywill have information that the fragment is incremental, meaning it may not be available right away.Apart from generating code that includes support for the
@deferdirective, the Codegen also exports a utility function calledisFragmentReady. You can use it to conditionally render components based on whether the data for a deferredfragment is available:
#9304
e1dc75f3cThanks @esfomeado! - Added support for disabling suffixes on Enums.Patch Changes
4d9ea1a5a,4d9ea1a5a,4d9ea1a5a,f46803a8c,3848a2b73,ba84a3a27,63827fabe,50471e651,5aa95aa96,ca02ad172,e1dc75f3c,bb66c2a31,5950f5a68,5aa95aa96]:v3.0.4Compare Source
Patch Changes
386cf9044,402cb8ac0]:v3.0.3Compare Source
Patch Changes
#9150
92d86b009Thanks @rliljest! - Properly escape enum identifiers when enumsAsConst is usedUpdated dependencies [
e56790104,b7dacb21f,f104619ac,acb647e4e,9f4d9c5a4]:v3.0.2[Compare Source](https://redirect.github.com/dotansimha/graphql-code-generator/compare/a1edaee674bf118f4e3
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.